package com.xusan.test;


import com.xusan.spirng.AnnotationApplicationContext;

public class XApplicationContext {

    public static void main(String[] args) {
        AnnotationApplicationContext applicationContext = new AnnotationApplicationContext(AppConfig.class);
        System.out.println("#####################################");
        Object user = applicationContext.getBean("user");
        Object user2 = applicationContext.getBean("user");
        Object user3 = applicationContext.getBean("user");
        Object boy = applicationContext.getBean("boy");
        System.out.println(user);
        System.out.println(user2);
        System.out.println(user3);
        System.out.println(boy);

    }
}
